/**
 * Created by yoyoyk on 2017/5/12.
 */
/**
 * Created by yoyoyk on 2017/5/12.
 */
/**
 * Created by yoyoyk on 2017/5/11.
 */

import Relay from "react-relay";
export default class getProSizeDetail extends Relay.Mutation {
    getMutation() {
        return Relay.QL`mutation { getProSizeDetail }`;
    }

    getVariables() {
        return {
            argsInput: {
                pdId:this.props.pdId
            }
        }
    }

    getFatQuery() {
        return Relay.QL`fragment on getProSizeDetailPayload {
                     responseData{
                             proSizeDetailModel{
                                sizeDetailId
                                fileJSON
                                imgJSON
                                pdId
                                content
                             }   
                        errorCode
                    }
        }`;
    }

    getConfigs() {
        return [{
            type: 'REQUIRED_CHILDREN',
            children: [Relay.QL`
               fragment on getProSizeDetailPayload  {
                        responseData{
                             proSizeDetailModel{
                                fileJSON
                                imgJSON
                                pdId
                                content
                                sizeDetailId
                             }   
                        errorCode
                    }
               }
            `]
        }];
    }

}
